package com.briup.cms.service.impl;


import com.briup.cms.bean.Inform;
import com.briup.cms.dao.InformMapper;
import com.briup.cms.service.IInformService;
import io.swagger.models.auth.In;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class InformServiceImpl implements IInformService {
    @Resource
    private InformMapper informMapper;

    @Override
    public List<Inform> findAll() {
        List<Inform> list = informMapper.selectAll();
        return list;
    }

    @Override
    public void save(Inform inform) {
        informMapper.insert(inform);
    }

    @Override
    public void update(Inform inform) {
        informMapper.update(inform);
    }

    @Override
    public void delete(Inform inform) {
        informMapper.delete(inform);

    }
}